package com.yvon.maple.service.seckill.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.yvon.boot.mybatis.model.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 秒杀订单
 *
 * @author Yvon
 * @date 2024-10-24
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("seckill_order")
public class SeckillOrder extends BaseEntity implements Serializable {

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 商品id
     */
    private Long goodsId;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 秒杀活动价格
     */
    private BigDecimal activityPrice;

    /**
     * 购买数量
     */
    private Integer quantity;

    /**
     * 订单总金额
     */
    private BigDecimal orderPrice;

    /**
     * 活动id
     */
    private Long activityId;

    /**
     * 订单状态 1：已创建 2：已支付 0：已取消； -1：已删除
     */
    private Integer status;

}
